//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Pure Imagination Music Festival: The Flaming Lips, Sylvan Esso, Tanya Tucker, The Pharcyde & Michael Franti and Spearhead - 2 Day Pass','Watson Lake','Prescott, AZ','Friday','5/17/2024','11:00 AM','6395641','Pure-Imagination-Music-Festival--The-Flaming-Lips--Sylvan-Esso--Tanya-Tucker--The-Pharcyde---Michael-Franti-and-Spearhead---2-Day-Pass-5-17-2024'],['The Flaming Lips','Revel Entertainment Center','Albuquerque, NM','Friday','5/17/2024','8:00 PM','6277533','The-Flaming-Lips-5-17-2024'],['Pure Imagination Music Festival: The Flaming Lips, Sylvan Esso, Tanya Tucker & The Pharcyde - Saturday','Watson Lake','Prescott, AZ','Saturday','5/18/2024','11:00 AM','6395640','Pure-Imagination-Music-Festival--The-Flaming-Lips--Sylvan-Esso--Tanya-Tucker---The-Pharcyde---Saturday-5-18-2024'],['The Flaming Lips','Helen DeVitt Jones Theater At The Buddy Holly Hall','Lubbock, TX','Friday','6/21/2024','8:00 PM','6278547','The-Flaming-Lips-6-21-2024'],['The Flaming Lips','Uptown Theater - KC','Kansas City, MO','Sunday','6/23/2024','8:00 PM','6276362','The-Flaming-Lips-6-23-2024'],['The Flaming Lips','McGrath Amphitheatre','Cedar Rapids, IA','Tuesday','6/25/2024','8:00 PM','6276364','The-Flaming-Lips-6-25-2024'],['The Flaming Lips','Everwise Amphitheater at White River State Park','Indianapolis, IN','Wednesday','6/26/2024','7:30 PM','6276363','The-Flaming-Lips-6-26-2024'],['The Flaming Lips','Iroquois Amphitheater','Louisville, KY','Friday','6/28/2024','8:00 PM','6276365','The-Flaming-Lips-6-28-2024'],['The Flaming Lips','GLC Live at 20 Monroe','Grand Rapids, MI','Saturday','6/29/2024','7:00 PM','6276366','The-Flaming-Lips-6-29-2024'],['The Flaming Lips','Greenfield Lake Amphitheater','Wilmington, NC','Tuesday','7/16/2024','6:30 PM','6276367','The-Flaming-Lips-7-16-2024'],['The Flaming Lips','Koka Booth Amphitheatre At Regency Park','Cary, NC','Wednesday','7/17/2024','7:00 PM','6276413','The-Flaming-Lips-7-17-2024'],['The Flaming Lips','Stage AE','Pittsburgh, PA','Saturday','7/20/2024','7:00 PM','6276690','The-Flaming-Lips-7-20-2024'],['The Flaming Lips','Artpark Amphitheatre','Lewiston, NY','Monday','7/22/2024','7:30 PM','6276368','The-Flaming-Lips-7-22-2024'],['The Flaming Lips','Beak & Skiff Apple Hill Campus','La Fayette, NY','Tuesday','7/23/2024','7:00 PM','6276751','The-Flaming-Lips-7-23-2024'],['The Flaming Lips','Thompson's Point','Portland, ME','Thursday','7/25/2024','7:30 PM','6276370','The-Flaming-Lips-7-25-2024'],['The Flaming Lips','Burlington Waterfront','Burlington, VT','Friday','7/26/2024','8:00 PM','6277532','The-Flaming-Lips-7-26-2024']],'The Flaming Lips','http://www.ticketnetwork.com/ticket/The-Flaming-Lips-events.aspx');